import { Opt } from '__com/Opt.js'
import ruleOpt from '@/option/rule.js'
import cityOpt from '@/option/city.js'
// import apiMgr from '../../biz/index'
export class editOpt extends Opt {
  constructor(fun) {
    super(fun)
  }
  create() {
    return [
      // {
      //   placeholder: '项目信息',
      //   text: {
      //     className: 'info-label-title'
      //   }
      // },
      [
        {
          title: '项目名称',
          key: 'tenantName',
          text: {}
        },
        {
          title: '合同主体',
          key: 'companyName',
          text: {}
        }
      ],
      [
        {
          title: '所属人名称',
          key: 'belongUserName',
          text: {}
        },
        {
          title: '所属人手机号',
          key: 'phoneVerify',
          text: {}
        }
      ],
      {
        title: '所属城市',
        key: 'cityName',
        text: {}
      },
      {
        placeholder: '项目有效期',
        text: {
          className: 'info-label-title'
        }
      },
      [
        {
          title: '有效期',
          key: 'effectStartDate',
          text: {},
          data: {
            from: (info) => {
              return `${info.effectStartDate}  至  ${info.effectEndDate}  `
            }
          }
        },
        {
          title: '有效期天数',
          key: 'day',
          text: {}
        }
      ],
      {
        placeholder: '功能包配置',
        text: {
          className: 'info-label-title'
        }
      }
    ]
  }
}
export class refuelingOpt extends Opt {
  constructor(fun) {
    super(fun)
  }
  create() {
    return [
      {
        placeholder: '加油包配置',
        text: {
          className: 'info-label-title'
        }
      },
      {
        title: '项目账号数',
        key: 'accountNumber',
        group: [
          {
            key: 'accountNumber',
            col: 2,
            text: {}
          },
          {
            placeholder: '个',
            col: 1,
            text: {}
          }
        ]
      },
      {
        placeholder: '项目备注',
        text: {
          className: 'info-label-title'
        }
      },
      {
        title: '',
        key: 'remark',
        text: {}
      }
    ]
  }
}
